<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>交易记录</h2>
        <ol class="breadcrumb">
            <li>
                <a href="#">首页</a>
            </li>

            <li class="active">
                <strong>交易记录</strong>
            </li>
        </ol>
    </div>

</div>

<div class="wrapper wrapper-content animated fadeInRight ecommerce">

    <div class="ibox-content m-b-sm border-bottom" id="form1">
        <div class="row">
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="game_id">游戏id</label>
                                        <input type="text" id="game_id" name="game_id" placeholder="游戏id"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="goods_unique_encode">商品唯一码</label>
                                        <input type="text" id="goods_unique_encode" name="goods_unique_encode" placeholder="商品唯一码"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="goods_price">商品价格</label>
                                        <input type="text" id="goods_price" name="goods_price" placeholder="商品价格"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="goods_quantity">商品数量</label>
                                        <input type="text" id="goods_quantity" name="goods_quantity" placeholder="商品数量"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="game_discount">商品折扣</label>
                                        <input type="text" id="game_discount" name="game_discount" placeholder="商品折扣"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="discount_money">折后价格</label>
                                        <input type="text" id="discount_money" name="discount_money" placeholder="折后价格"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="goods_name">商品名称</label>
                                        <input type="text" id="goods_name" name="goods_name" placeholder="商品名称"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="goods_id">商品id</label>
                                        <input type="text" id="goods_id" name="goods_id" placeholder="商品id"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="have_pay">是否付款</label>
                                        <input type="text" id="have_pay" name="have_pay" placeholder="是否付款"
                           class="form-control">
                                    </div>
            </div>
                        <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label" for="transaction_code">交易编号</label>
                                        <input type="text" id="transaction_code" name="transaction_code" placeholder="交易编号"
                           class="form-control">
                                    </div>
            </div>
                    </div>
        <div class="row">
            <div class="col-sm-6">
                <a class="btn btn-success btn-outline" href="#{:U('form')}">
                    <i class="fa fa-edit"></i>
                    <span class="bold">添加</span>
                </a>
            </div>
            <div class="col-sm-6 text-right">
                <button class="btn btn-default" data-op="reset">
                    <i class="fa fa-refresh"></i>
                    <span class="bold">重置</span>
                </button>
                &nbsp;
                &nbsp;
                <button class="btn btn-primary" data-op="search">
                    <i class="fa fa-search"></i>
                    <span class="bold">查询</span>
                </button>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" id="footable">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {
        YFootTable.create('#footable', {
            baseUrl: "{:U('TransactionRecord/')}",
            searchForm: '#form1',
            columns: [
                {name:'game_id',title:'游戏id',sortable: true}
				,{name:'goods_unique_encode',title:'商品唯一码',sortable: true,breakpoints:'xs sm md'}
				,{name:'goods_price',title:'商品价格',sortable: true,breakpoints:'xs sm md'}
				,{name:'goods_quantity',title:'商品数量',sortable: true,breakpoints:'xs sm md'}
				,{name:'game_discount',title:'商品折扣',sortable: true,breakpoints:'xs sm md'}
				,{name:'discount_money',title:'折后价格',sortable: true,breakpoints:'xs sm md'}
				,{name:'goods_name',title:'商品名称',sortable: true,breakpoints:'xs sm md'}
				,{name:'goods_id',title:'商品id',sortable: true,breakpoints:'xs sm md'}
				,{name:'have_pay',title:'是否付款',sortable: true,breakpoints:'xs sm md'}
				,{name:'transaction_code',title:'交易编号',sortable: true,breakpoints:'xs sm md'}
            ],
            actions: ['view', 'edit', 'remove']
        });
    });
</script>